Optimal. Leaf size=361 \[ \frac {2 (b c-a d)^2 \cos (e+f x) (a+b \sin (e+f x))}{d \left (c^2-d^2\right ) f \sqrt {c+d \sin (e+f x)}}+\frac {2 b \left (6 a b c d-3 a^2 d^2-b^2 \left (4 c^2-d^2\right )\right ) \cos (e+f x) \sqrt {c+d \sin (e+f x)}}{3 d^2 \left (c^2-d^2\right ) f}-\frac {2 \left (9 a^2 b c d^2-3 a^3 d^3-9 a b^2 d \left (2 c^2-d^2\right )+b^3 \left (8 c^3-5 c d^2\right )\right ) E\left (\frac {1}{2} \left (e-\frac {\pi }{2}+f x\right )|\frac {2 d}{c+d}\right ) \sqrt {c+d \sin (e+f x)}}{3 d^3 \left (c^2-d^2\right ) f \sqrt {\frac {c+d \sin (e+f x)}{c+d}}}-\frac {2 b \left (18 a b c d-9 a^2 d^2-b^2 \left (8 c^2+d^2\right )\right ) F\left (\frac {1}{2} \left (e-\frac {\pi }{2}+f x\right )|\frac {2 d}{c+d}\right ) \sqrt {\frac {c+d \sin (e+f x)}{c+d}}}{3 d^3 f \sqrt {c+d \sin (e+f x)}} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.41, antiderivative size = 361, normalized size of antiderivative = 1.00, number of steps
used = 7, number of rules used = 7, integrand size = 27, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.259, Rules used = {2871, 3102,
2831, 2742, 2740, 2734, 2732} \begin {gather*} \frac {2 b \left (-3 a^2 d^2+6 a b c d-\left (b^2 \left (4 c^2-d^2\right )\right )\right ) \cos (e+f x) \sqrt {c+d \sin (e+f x)}}{3 d^2 f \left (c^2-d^2\right )}-\frac {2 b \left (-9 a^2 d^2+18 a b c d-\left (b^2 \left (8 c^2+d^2\right )\right )\right ) \sqrt {\frac {c+d \sin (e+f x)}{c+d}} F\left (\frac {1}{2} \left (e+f x-\frac {\pi }{2}\right )|\frac {2 d}{c+d}\right )}{3 d^3 f \sqrt {c+d \sin (e+f x)}}-\frac {2 \left (-3 a^3 d^3+9 a^2 b c d^2-9 a b^2 d \left (2 c^2-d^2\right )+b^3 \left (8 c^3-5 c d^2\right )\right ) \sqrt {c+d \sin (e+f x)} E\left (\frac {1}{2} \left (e+f x-\frac {\pi }{2}\right )|\frac {2 d}{c+d}\right )}{3 d^3 f \left (c^2-d^2\right ) \sqrt {\frac {c+d \sin (e+f x)}{c+d}}}+\frac {2 (b c-a d)^2 \cos (e+f x) (a+b \sin (e+f x))}{d f \left (c^2-d^2\right ) \sqrt {c+d \sin (e+f x)}} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 2732
Rule 2734
Rule 2740
Rule 2742
Rule 2831
Rule 2871
Rule 3102
Rubi steps
\begin {align*} \int \frac {(a+b \sin (e+f x))^3}{(c+d \sin (e+f x))^{3/2}} \, dx &=\frac {2 (b c-a d)^2 \cos (e+f x) (a+b \sin (e+f x))}{d \left (c^2-d^2\right ) f \sqrt {c+d \sin (e+f x)}}-\frac {2 \int \frac {\frac {1}{2} \left (2 b (b c-a d)^2-a d \left (\left (a^2+b^2\right ) c-2 a b d\right )\right )+\frac {1}{2} \left (a^2 b c d-b^3 c d-a^3 d^2-a b^2 \left (2 c^2-3 d^2\right )\right ) \sin (e+f x)+\frac {1}{2} b \left (6 a b c d-3 a^2 d^2-b^2 \left (4 c^2-d^2\right )\right ) \sin ^2(e+f x)}{\sqrt {c+d \sin (e+f x)}} \, dx}{d \left (c^2-d^2\right )}\\ &=\frac {2 (b c-a d)^2 \cos (e+f x) (a+b \sin (e+f x))}{d \left (c^2-d^2\right ) f \sqrt {c+d \sin (e+f x)}}+\frac {2 b \left (6 a b c d-3 a^2 d^2-b^2 \left (4 c^2-d^2\right )\right ) \cos (e+f x) \sqrt {c+d \sin (e+f x)}}{3 d^2 \left (c^2-d^2\right ) f}-\frac {4 \int \frac {-\frac {1}{4} d \left (3 a^3 c d+9 a b^2 c d-9 a^2 b d^2-b^3 \left (2 c^2+d^2\right )\right )+\frac {1}{4} \left (9 a^2 b c d^2-3 a^3 d^3-9 a b^2 d \left (2 c^2-d^2\right )+b^3 \left (8 c^3-5 c d^2\right )\right ) \sin (e+f x)}{\sqrt {c+d \sin (e+f x)}} \, dx}{3 d^2 \left (c^2-d^2\right )}\\ &=\frac {2 (b c-a d)^2 \cos (e+f x) (a+b \sin (e+f x))}{d \left (c^2-d^2\right ) f \sqrt {c+d \sin (e+f x)}}+\frac {2 b \left (6 a b c d-3 a^2 d^2-b^2 \left (4 c^2-d^2\right )\right ) \cos (e+f x) \sqrt {c+d \sin (e+f x)}}{3 d^2 \left (c^2-d^2\right ) f}-\frac {\left (b \left (18 a b c d-9 a^2 d^2-b^2 \left (8 c^2+d^2\right )\right )\right ) \int \frac {1}{\sqrt {c+d \sin (e+f x)}} \, dx}{3 d^3}-\frac {\left (9 a^2 b c d^2-3 a^3 d^3-9 a b^2 d \left (2 c^2-d^2\right )+b^3 \left (8 c^3-5 c d^2\right )\right ) \int \sqrt {c+d \sin (e+f x)} \, dx}{3 d^3 \left (c^2-d^2\right )}\\ &=\frac {2 (b c-a d)^2 \cos (e+f x) (a+b \sin (e+f x))}{d \left (c^2-d^2\right ) f \sqrt {c+d \sin (e+f x)}}+\frac {2 b \left (6 a b c d-3 a^2 d^2-b^2 \left (4 c^2-d^2\right )\right ) \cos (e+f x) \sqrt {c+d \sin (e+f x)}}{3 d^2 \left (c^2-d^2\right ) f}-\frac {\left (\left (9 a^2 b c d^2-3 a^3 d^3-9 a b^2 d \left (2 c^2-d^2\right )+b^3 \left (8 c^3-5 c d^2\right )\right ) \sqrt {c+d \sin (e+f x)}\right ) \int \sqrt {\frac {c}{c+d}+\frac {d \sin (e+f x)}{c+d}} \, dx}{3 d^3 \left (c^2-d^2\right ) \sqrt {\frac {c+d \sin (e+f x)}{c+d}}}-\frac {\left (b \left (18 a b c d-9 a^2 d^2-b^2 \left (8 c^2+d^2\right )\right ) \sqrt {\frac {c+d \sin (e+f x)}{c+d}}\right ) \int \frac {1}{\sqrt {\frac {c}{c+d}+\frac {d \sin (e+f x)}{c+d}}} \, dx}{3 d^3 \sqrt {c+d \sin (e+f x)}}\\ &=\frac {2 (b c-a d)^2 \cos (e+f x) (a+b \sin (e+f x))}{d \left (c^2-d^2\right ) f \sqrt {c+d \sin (e+f x)}}+\frac {2 b \left (6 a b c d-3 a^2 d^2-b^2 \left (4 c^2-d^2\right )\right ) \cos (e+f x) \sqrt {c+d \sin (e+f x)}}{3 d^2 \left (c^2-d^2\right ) f}-\frac {2 \left (9 a^2 b c d^2-3 a^3 d^3-9 a b^2 d \left (2 c^2-d^2\right )+b^3 \left (8 c^3-5 c d^2\right )\right ) E\left (\frac {1}{2} \left (e-\frac {\pi }{2}+f x\right )|\frac {2 d}{c+d}\right ) \sqrt {c+d \sin (e+f x)}}{3 d^3 \left (c^2-d^2\right ) f \sqrt {\frac {c+d \sin (e+f x)}{c+d}}}-\frac {2 b \left (18 a b c d-9 a^2 d^2-b^2 \left (8 c^2+d^2\right )\right ) F\left (\frac {1}{2} \left (e-\frac {\pi }{2}+f x\right )|\frac {2 d}{c+d}\right ) \sqrt {\frac {c+d \sin (e+f x)}{c+d}}}{3 d^3 f \sqrt {c+d \sin (e+f x)}}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 2.15, size = 311, normalized size = 0.86 \begin {gather*} \frac {2 \left (\frac {\left (d^2 \left (-3 a^3 c d-9 a b^2 c d+9 a^2 b d^2+b^3 \left (2 c^2+d^2\right )\right ) F\left (\frac {1}{4} (-2 e+\pi -2 f x)|\frac {2 d}{c+d}\right )+\left (9 a^2 b c d^2-3 a^3 d^3+9 a b^2 d \left (-2 c^2+d^2\right )+b^3 \left (8 c^3-5 c d^2\right )\right ) \left ((c+d) E\left (\frac {1}{4} (-2 e+\pi -2 f x)|\frac {2 d}{c+d}\right )-c F\left (\frac {1}{4} (-2 e+\pi -2 f x)|\frac {2 d}{c+d}\right )\right )\right ) \sqrt {\frac {c+d \sin (e+f x)}{c+d}}}{(c-d) (c+d)}-\frac {d \cos (e+f x) \left (9 a b^2 c^2 d-9 a^2 b c d^2+3 a^3 d^3+b^3 \left (-4 c^3+c d^2\right )+b^3 d \left (-c^2+d^2\right ) \sin (e+f x)\right )}{-c^2+d^2}\right )}{3 d^3 f \sqrt {c+d \sin (e+f x)}} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [B] Leaf count of result is larger than twice the leaf count of optimal. \(1397\) vs.
\(2(409)=818\).
time = 23.59, size = 1398, normalized size = 3.87
method | result | size |
default | \(\text {Expression too large to display}\) | \(1398\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Failed to integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [C] Result contains higher order function than in optimal. Order 9 vs. order
4.
time = 0.20, size = 1083, normalized size = 3.00 \begin {gather*} \frac {{\left (\sqrt {2} {\left (16 \, b^{3} c^{4} d - 36 \, a b^{2} c^{3} d^{2} + 2 \, {\left (9 \, a^{2} b - 8 \, b^{3}\right )} c^{2} d^{3} + 3 \, {\left (a^{3} + 15 \, a b^{2}\right )} c d^{4} - 3 \, {\left (9 \, a^{2} b + b^{3}\right )} d^{5}\right )} \sin \left (f x + e\right ) + \sqrt {2} {\left (16 \, b^{3} c^{5} - 36 \, a b^{2} c^{4} d + 2 \, {\left (9 \, a^{2} b - 8 \, b^{3}\right )} c^{3} d^{2} + 3 \, {\left (a^{3} + 15 \, a b^{2}\right )} c^{2} d^{3} - 3 \, {\left (9 \, a^{2} b + b^{3}\right )} c d^{4}\right )}\right )} \sqrt {i \, d} {\rm weierstrassPInverse}\left (-\frac {4 \, {\left (4 \, c^{2} - 3 \, d^{2}\right )}}{3 \, d^{2}}, -\frac {8 \, {\left (8 i \, c^{3} - 9 i \, c d^{2}\right )}}{27 \, d^{3}}, \frac {3 \, d \cos \left (f x + e\right ) - 3 i \, d \sin \left (f x + e\right ) - 2 i \, c}{3 \, d}\right ) + {\left (\sqrt {2} {\left (16 \, b^{3} c^{4} d - 36 \, a b^{2} c^{3} d^{2} + 2 \, {\left (9 \, a^{2} b - 8 \, b^{3}\right )} c^{2} d^{3} + 3 \, {\left (a^{3} + 15 \, a b^{2}\right )} c d^{4} - 3 \, {\left (9 \, a^{2} b + b^{3}\right )} d^{5}\right )} \sin \left (f x + e\right ) + \sqrt {2} {\left (16 \, b^{3} c^{5} - 36 \, a b^{2} c^{4} d + 2 \, {\left (9 \, a^{2} b - 8 \, b^{3}\right )} c^{3} d^{2} + 3 \, {\left (a^{3} + 15 \, a b^{2}\right )} c^{2} d^{3} - 3 \, {\left (9 \, a^{2} b + b^{3}\right )} c d^{4}\right )}\right )} \sqrt {-i \, d} {\rm weierstrassPInverse}\left (-\frac {4 \, {\left (4 \, c^{2} - 3 \, d^{2}\right )}}{3 \, d^{2}}, -\frac {8 \, {\left (-8 i \, c^{3} + 9 i \, c d^{2}\right )}}{27 \, d^{3}}, \frac {3 \, d \cos \left (f x + e\right ) + 3 i \, d \sin \left (f x + e\right ) + 2 i \, c}{3 \, d}\right ) + 3 \, {\left (\sqrt {2} {\left (8 i \, b^{3} c^{3} d^{2} - 18 i \, a b^{2} c^{2} d^{3} + i \, {\left (9 \, a^{2} b - 5 \, b^{3}\right )} c d^{4} - 3 i \, {\left (a^{3} - 3 \, a b^{2}\right )} d^{5}\right )} \sin \left (f x + e\right ) + \sqrt {2} {\left (8 i \, b^{3} c^{4} d - 18 i \, a b^{2} c^{3} d^{2} + i \, {\left (9 \, a^{2} b - 5 \, b^{3}\right )} c^{2} d^{3} - 3 i \, {\left (a^{3} - 3 \, a b^{2}\right )} c d^{4}\right )}\right )} \sqrt {i \, d} {\rm weierstrassZeta}\left (-\frac {4 \, {\left (4 \, c^{2} - 3 \, d^{2}\right )}}{3 \, d^{2}}, -\frac {8 \, {\left (8 i \, c^{3} - 9 i \, c d^{2}\right )}}{27 \, d^{3}}, {\rm weierstrassPInverse}\left (-\frac {4 \, {\left (4 \, c^{2} - 3 \, d^{2}\right )}}{3 \, d^{2}}, -\frac {8 \, {\left (8 i \, c^{3} - 9 i \, c d^{2}\right )}}{27 \, d^{3}}, \frac {3 \, d \cos \left (f x + e\right ) - 3 i \, d \sin \left (f x + e\right ) - 2 i \, c}{3 \, d}\right )\right ) + 3 \, {\left (\sqrt {2} {\left (-8 i \, b^{3} c^{3} d^{2} + 18 i \, a b^{2} c^{2} d^{3} - i \, {\left (9 \, a^{2} b - 5 \, b^{3}\right )} c d^{4} + 3 i \, {\left (a^{3} - 3 \, a b^{2}\right )} d^{5}\right )} \sin \left (f x + e\right ) + \sqrt {2} {\left (-8 i \, b^{3} c^{4} d + 18 i \, a b^{2} c^{3} d^{2} - i \, {\left (9 \, a^{2} b - 5 \, b^{3}\right )} c^{2} d^{3} + 3 i \, {\left (a^{3} - 3 \, a b^{2}\right )} c d^{4}\right )}\right )} \sqrt {-i \, d} {\rm weierstrassZeta}\left (-\frac {4 \, {\left (4 \, c^{2} - 3 \, d^{2}\right )}}{3 \, d^{2}}, -\frac {8 \, {\left (-8 i \, c^{3} + 9 i \, c d^{2}\right )}}{27 \, d^{3}}, {\rm weierstrassPInverse}\left (-\frac {4 \, {\left (4 \, c^{2} - 3 \, d^{2}\right )}}{3 \, d^{2}}, -\frac {8 \, {\left (-8 i \, c^{3} + 9 i \, c d^{2}\right )}}{27 \, d^{3}}, \frac {3 \, d \cos \left (f x + e\right ) + 3 i \, d \sin \left (f x + e\right ) + 2 i \, c}{3 \, d}\right )\right ) - 6 \, {\left ({\left (b^{3} c^{2} d^{3} - b^{3} d^{5}\right )} \cos \left (f x + e\right ) \sin \left (f x + e\right ) + {\left (4 \, b^{3} c^{3} d^{2} - 9 \, a b^{2} c^{2} d^{3} - 3 \, a^{3} d^{5} + {\left (9 \, a^{2} b - b^{3}\right )} c d^{4}\right )} \cos \left (f x + e\right )\right )} \sqrt {d \sin \left (f x + e\right ) + c}}{9 \, {\left ({\left (c^{2} d^{5} - d^{7}\right )} f \sin \left (f x + e\right ) + {\left (c^{3} d^{4} - c d^{6}\right )} f\right )}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F(-1)] Timed out
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Timed out} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {could not integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [F]
time = 0.00, size = -1, normalized size = -0.00 \begin {gather*} \int \frac {{\left (a+b\,\sin \left (e+f\,x\right )\right )}^3}{{\left (c+d\,\sin \left (e+f\,x\right )\right )}^{3/2}} \,d x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________